make templateId, dataId and params available on all views
fix issues with scope on template load