改善事件注册器，优化layout

Signed-off-by: Gaubee <GaubeeBangeel@gmail.com>