add airplane mode check