public function formButtons(array $options = []): string
    {
        $url = ['action' => 'index'];
        $options = Hash::merge([
            'useReferer' => false,
            'horizontalLine' => true,
            'cancelButton' => true,
            'saveButtonTitle' => __d('ck_tools', 'save'),
            'cancelButtonTitle' => __d('ck_tools', 'cancel'),
        ], $options);

        if (!empty($options['useReferer']) && $this->request->referer() !== '/') {
            $url = $this->request->referer();
        }

        $formButtons = '<div class="submit-group">';
        if ($options['horizontalLine']) {
            $formButtons .= '<hr>';
        }
        $formButtons .= $this->Form->button($options['saveButtonTitle'], ['class' => 'btn-success']);
        if ($options['cancelButton']) {
            $formButtons .= $this->backButton($options['cancelButtonTitle'], $url, ['class' => 'btn btn-default cancel-button', 'icon' => null]);
        }
        $formButtons .= '</div>';

        return $formButtons;
    }