closes #3
closes #2
eliminates race condition where editor refresh occurs before event is registered