fix save button display conditions