cleaning and removing unused imports
adding undo-redo command