protected function getElementLine($config, $manialink, $element, $width, $manialinkFactory)
    {
        $label = $this->uiFactory
            ->createLabel($this->getElementName($element))
            ->setX(2)
            ->setWidth($width * 0.66);
        $delButton = $this->uiFactory
            ->createButton('Remove')
            ->setWidth($width * 0.33)
            ->setAction(
                $this->actionFactory->createManialinkAction(
                    $manialink,
                    function (ManialinkInterface $manialink, $login, $entries, $args) use ($manialinkFactory) {
                        /** @var TextListConfig $config */
                        $config = $args['config'];
                        $config->remove($args['element']);

                        $manialinkFactory->update($manialink->getUserGroup());
                    },
                    ['config' => $config, 'element' => $element]
                )
            );

        return $this->uiFactory->createLayoutLine(0,0, [$label, $delButton]);
    }