slot checking added(not when resizing or dragging)
clean up