new func in main func for build checkbox and map values from array