fixed api datatable access from views