add confirm dialog box and fix view_events.jsp loading time issue

Thanks Chad's great idea to cut view_events page loading time!!!