Clean up the code to pop up the event editor.

Signed-off-by: Blake Skinner <bskinner@mit.edu>