trying to set up page loops