added search and clear posts/comments functionality