add functions pre, pagination, breadcrumb. add dashboard hook