fixed bug where home button wouldn't direct the user back to the main page