fixing save button enabled/disabled