Proper AJAX, also used datagrid to make tables prettier