refactor results view