Change location from on-line to off-line and back