added comment for history location and added query params