Adding page event