[DEV] generate warning when delete in an error state and rework pop-up and contextmenu