add gotopage event