Added drag event handlers and refactored the setup code.
Added controller calls to drag events (needs cleaning).
Fixed program bug.