add search and comment function