changed the online/offline status and function of populating scope