Add select-on-click directive