Migrated SyncDataActivity code into SyncFragment