add checkboxVal, checked function