added logout to the ui