Select whole component on click