remove table controller, replace with directive instead