Added the event to the main activity