deleted duplicate code in event controller update method