added check to make sure device is online status before doing syncing
changed stock out icon Refs Item:425