dragging around a rectangle