Added map functions to change online\offline mode