rectangles are now deleted by clicking on them.