edit button's handlers