Fix deprecated widgets in ui files.