added logout and nav menu
removed redundant js, small changes to controller for logout