Added ability to set template url from provider