Added internet connection check
Fixed Loading Dialog