Text this: Mode selection and resource optimization for UAV-assisted cellular networks