client side check for history