Added exit button on the main page and profile page