Update the history searching mechanism