added conditionals to page-events.php