edit button works