fixed typo in event name and moved registration into autoloader library