add filter functionality to the post list