adding search function for our posts