Added logout feature to main tabs