UI stuff.

Added query UI, and dragging functionality is in progress