generic gotoPage()