add window mod for graph, update for ulilts vertion