added functions for searching and pagination of tables using the data tables