Online-offline is working

With these simple changes, the online/offline should work!

Stu