Add select directive