Modified mainbar to go back to main.jsp on logo click and logout when logout is presssed.