template variable was changed into capital letters
changing hooks to asideHooks and events to asideEvents
using template save_substitute