Disabling the syncButton when the user went offline, doesn't seem to be enough to prevent the user from syncing while offline.  Added a check to ensure the user is connected before syncing