ensure redrawing in event handlers