How can I move to a certain page depending on selection