Define dialog function directly on dialogProvider property.