function added to the dom for deleting events
events are provided with ids that could be used for performing different operations on events, for now delete
delete operation now works for deleting events