add setSelection API