DB 2 - Latest update question and layout editor feedback

Tbh, I didn't revert to test how or why Colin. I just noticed the function had been moved outside of it's iife and it all made sense. And the fix works!