Cleaned up code in mainPage