No internet connection case added. 
Now if there is no internet connection a dialog window pup ups, there
are two options: 
1) retry to connect to the server
2) close current activity