history list and favourites list is now showing the correct queries