adding callback function to set access token