To fix inefficiences with gui and add the menu and plot clicking