move front page to own function for formatting