add getSelection directive