connect history_task on layout_task