now the selection checkbox reflects the actual selection status