add search function on function fields