add methods to enable and disable undo and redo buttons
Merge pull request #4 from bennettslin/master

add methods to enable and disable undo and redo buttons