public function end($buttons = NULL, $options = []) {
        $res = $this->_cleanCurrent();
        if($buttons !== null) {
            $res .= $this->footer($buttons, $options);
        }
        $res .= $this->formatTemplate('modalEnd', [
            'contentEnd' => $this->formatTemplate('modalContentEnd', []),
            'dialogEnd' => $this->formatTemplate('modalDialogEnd', [])
        ]);
        return $res;
    }