private function renderButtons($rendered, $buttons)
    {
        foreach ($buttons as $button) {
            if (! isset($button['name'])) {
                throw new ControlException("Button must have at least a name!");
            }
            $buttonType = isset($button['type']) ? $button['type'] : "submit";
            $id = isset($button['id']) ? $button['id'] : $button['name'];
            $class = isset($button['class']) ? $button['class'] : $button['name'];
            $label = isset($button['label']) ? $button['label'] : $button['name'];
            
            $rendered .= sprintf('<button type="%s" id="%s" class="%s" name="%s">%s</button>',
            		$buttonType, $id, $class, $button['name'], $label);
        }
        
        return $rendered;
    }