fix edit menu and other stuff