fixes in index template