rewrite the drag action