Cleaned up index template