most of the things done except logout