refactor indices view