Making the location search widget work in the reference application