Moved warning dialog and checking for internet connection to
BaseActivity