fix templateselector.view.js