moved save and delete event buttons to the template