Automatically call buildDatatableView when rendering DataTable

Since the `buildDatatableView()` always needs to be called, I think it is should automatically be done in the twig function, then it is not necessary to call it each time in the controller