fixed save button trigger