Implemented airplane mode toggle logic