added undo redo stack setup
undo redo stack changes