esc key functionality to undo drag for details