added dragging border constraints