updated ajax controller to handle multiple section validation