Renamed toPage to goToPage