Added function for filter pages