UI bug fixes, and drag-and-drop UI (partly thanks to William Qian).