$id = isset($_REQUEST['id']) ? $_REQUEST['id'] : $_SESSION['empID'];
     $year = isset($_REQUEST['year']) ? $_REQUEST['year'] : date('Y');
     $leaveController->setId($id);
     $leaveController->viewLeaves("taken", $year, true);
     break;
 case 'Leave_Type_Edit':
     $objs = $LeaveTypeExtractor->parseEditData($_POST);
     $leaveController->editLeaveTypes($objs);
     break;
 case 'Leave_Type_Delete':
     $objs = $LeaveTypeExtractor->parseDeleteData($_POST);
     if (isset($objs)) {
         foreach ($objs as $obj) {
             $leaveController->setObjLeave($obj);
             $leaveController->setId($obj->getLeaveTypeId());
             $mes = $leaveController->LeaveTypeDelete();
         }
     }
     $leaveController->redirect($mes);
     break;
 case 'Leave_Request_CancelLeave':
     $objs = $leaveRequestsExtractor->parseDeleteData($_POST);
     $mes = "Empty record";
     if (isset($objs)) {
         foreach ($objs as $obj) {
             $leaveController->setObjLeave($obj);
             $leaveController->setId($obj->getLeaveRequestId());
             if ($obj->getLeaveStatus() != Leave::LEAVE_STATUS_LEAVE_CANCELLED) {
                 $mes = $leaveController->changeStatus('change');
             } else {
                 $mes = $leaveController->changeStatus();