simplifying the index template

removing code we don't use much