added resize button and resize rectangles for lines