add search feature in template and orm