Add some connection check when arriving on the history view