[CDE-328]: fixed bug where only the first expand parameter was updated on click event

@pamval please review
Why do we need two cycles here. Shouldn't one be enough ? Do the setParameters and check for firstChange during the cycle, if there was a change calll fireChange after the cycle.