Add @ui pragma to widgets.