Set up all the events in the initializer