add row function is changed