loading tables dynamically without reloading the page