better dragging and selection, and added simple logout