changed it so it starts loading the page first