Update tasks status