refactor offline msg to settings