further refactoring of the tasks views