Index table to div, corrected ordering of task history