(ui) make rectange draggable and resizible