fixed dragging bug
code cleanup on dock and level screen