fix counting of written params; fix wiring of pend param widget to model