added "click anywhere inside table cell to check checkbox" function