refactoring results index into show