Added proper stroke color selection to rectangles. Added an element handler for SVG lines.