added search feaure for Posts