update location and html