Added undo support for uncmi and unticked command