Implemented basic AJAX for tables