handled server side logout
added specs for logout view
introduced main menu view
cleaned code