trying to get the a new page to load each time. created logic in the home.js file, but I think it is misplaced, because it is erroring out