Logic: implemented viewDate and viewTimeFrame, moved the task display
String to class variable