event listeners for editing and deleting collections