added revert option to draggable