replace ui resource