add search function for terms list