ShowIndex refactoring