Completed viewNext function.
Completed deleteByDeadline and deleteByTimeFrame function.
Added checkTime function for comparing the endtime of tasks.