task view refactor