ordening controllers (avoiding window.init not defined)