redraw correctly on option change