moved type and filter method to PageComponent.