added main screen link and log out functionality