changed preview button to edit button