chapter 4 - added an index template and modified index view