re-add write_log
add history page