add onCLick to select component to hosting card