modified getSelector in adapter