added swig template for index view