make goBackHome and mainPage function