index view wiring and base template