add ability to detect whether network is connected
determine whether network connected before making xhr
add warning app bar and use when no network connection detected