added index template and handler