fixed wierd bug: need to set both props.rows as well as state.rows otherwise rerendering is not happening