add sorter and paginator directives.