add undomanager support