dynamic row addition handling