added baseUrl to templateData