Refeactored admin controller, event model, table_ajax.js.