added index and template