VID-2089 using mw.hook to handle events for loading new galleries