Remove previously added unneccessary variable for getting removed row index.
Simplify code for adding/removing rows at right places