add history order and fix jquery load