add path window invalidate and paint