fixed save button toggling