fix save btn handler