Fixed bug where the view showed it was refreshing even when it was not due to not having an internet connection