Updated history to work on search