Move google api call to top