changing the render method to not reload entire page, and handling offline status for latency