display graph in correct order, added stats polling