Move auth into Treeview and add logout button