create view_all_events method in UI