public function getButtons()
    {
        if ($this->buttons && is_array($this->buttons)) {
            return $this->buttons;
        } else {
            return $this->config()->default_buttons;
        }
    }