Changes to form not saved after saving