move onto buttons logic in edit form