added offline check to show ofline data magically