Context menu improvements, introduced a double free bug at exit (may be the menus, when deleting the submenu), delete selection with Delete key