added the delete menu and the functions to use the menu