Changed so that the edit menu gets enabled/disabled