add search for history  bugs