added dragging to move windows