added function that loads the page