How to rearrange checkbox fields