Completed functionality for editing and deleting events!