add the control of airplay function