add tag state to location hash