When a task is marked as completed, the next uncompleted tasks will be set as active