implemented visual move-resize