links templates to views