Modified index view, and set up templates