Refactor Today View using taskView and viewType