Why is the location widget not working?