implemented OSK and offline mode toggle