Update submit button when selecting an item to edit.