implemented Drag Handling