added post filtering option using search bar