Added temp code for dragging rects