use only one button for edit