Cleaned up the template index page