protected function addStatusMessage($type, $messages)
    {
        if (is_array($messages)) {
            foreach ($messages as $message) {
                $_SESSION['messages']['status'][$type][] = $message;
            }
        } else {
            $_SESSION['messages']['status'][$type][] = $messages;
        }
    }