fix template, fix 9 proc cases
indexes in case view