updated location to location.href