checking network connection and UI warnings about network