Updated array of tasks to ArrayList