Set up templates-view connection