Add save/restore to widgets.