remove OnPaint func