added block-functionality with pages