fixed displayAllTasks in GUI - for loop