format the code using netbeans
merge events pannel from https://github.com/CyprienWebDev/magneto-debug