Finished implementation of main page.