Move setBreadcrumbs to separate function from template.php