added basic index view and tweaked template view