change redraw event to draw and resize (like Tk)