updated plugin dialog and save logic