Added edit and delete events