Code cleanup on the index template.