fix dragging after page creation