Refactorings and undo redo buttons