made edit button for events