created class for home page

My idea to decrease amount of code in main file is to have each page be
its own class with a drawPage() function that will populate the data
section of the screen