added delayed task update and fixed reordering bug