added a alert Dialog to check internet connection.