added searching of history