Added logout feature

Logout feature is added and the old buttons’ function