made rectangles resizable for touch