[UI] logout function

still buggy