Added connection checking before loading maps views.