Getting closer, but just can't close the deal on binding the 'selected' flag to the table on the modal