added ajax call for location