updated the way to connect to Google Calendar API