fixed del function
fixed menu's add update del functions.