add index template and controller