refactor results activity