Add controller code for party/representative widgets.