next_workitem() view func updated