fixed the build and default data, improve checboxes handler