navigate to the correct page