Emit an event when the selection of the table is changed