auto update after each hour implemented
onPause method added to remove callback from handler before exiting activity
added wifiManager to check for connection