attach EventHandler as shared_ptr