fixed callback
adding code to revert dragged invalid moves