How to split the check box values in different rows?