set layout moved inside the before hook from plugin import