graying out undo button when undo stack is empty