added index html template and updated index handler