transform gui as plugin