implemented templated views