added pagination and corrected breadcrumbs render helper