refactor result view setting