Changed the update location functionality