converted index page to templates