refactor: detail controller registers for the selection-change event to be aware of selection changes