Added functions to event controller to show past and future events of an user