Fixed undo command for view