Merge pull request #1 from anton-abushkevich/undo-redo

disabled buttons
right click fix
undo-redo implementation & refactoring