split inputs when a row is added