updating scrolling, adding cua mode for rectangles