UpdateGraph logic; refresh loop in good shape