Add template for editing, add more events for actions