Disable linker in Release mode
Add OnEvent handler to CutomLayout