widget bundle reformat code