add checkbox and make main.js file