Dragging the frame works now

but it's still needs some improvements