editor.addEvent method implemented

editor.addEvent method implemented with basic changes in the
showOrderAndEventPrompt method