remove click handlers when a target is selected