added modifications to LabelController.php