view_event and search_event_wrapper