redraw summary when theme preference changes & consolidate code.