Added input values to 'mainPage' method