check if undo redo actions can be done