improved logout option