made index.html load templates for different views