Implemented the filter to filter based on published status