toggle offline in dialog