working on integrating gui and plugin logic