Found out how to make pages dynamically change