change redraw event to draw and resize