Refactory the Home page to user seperate partials for the two branches of the if-else statement