add offline indicator icon and logic