Clean up index view and index template.