Adds functionality for updating events