put setting the location text in the manual api fragment into a if
caluse