Move the dragger code to its own class.
Move the dragger code to its own file.