refresh() made safe to call in case widget is not yet initialized.