Moved helper functions to the application controller so functions can now be called from other controllers and the view. Also added a new helper_function that will allow users to search for events based on id.