convertsion of insertrow  classinto a component one
correction of for() loop in htmlparser