public function build($id = '', $class = '', $content = null, $title = 'Dialog Frame', $action = '', $background = true, $type = self::TYPE_OK_CANCEL, $fileUpload = false)
    {
        // Set popup properties
        $this->background($background);

        // Build window frame
        parent::build($id, $class, $title);
        $this->addClass('dialog-frame');

        // Build Form
        $this->form = new SimpleForm($this->getHTMLDocument(), $this->getFormFactory());
        $this->form->build($id = '', $action, $async = true, $fileUpload, $defaultButtons = false, $requiredNotes = true);
        $this->appendToBody($this->form);

        // Build Controls
        $this->buildControls($type);

        // Append any custom content
        $this->appendToBody($content);

        return $this;
    }