reload history on every page change