refratored getTaskArray from Taskviewcontroller to taskmodel