connected some edit menu options with methods