fixed upload google cred to be ajax handled