event page code added