got current selection working