latest working version with bootstrap template and checkbox