added isOnline verification to UIUtils