display task from array