Made actions work properly with online/offline-ness
Removed redundant style