Code to create the edit menu