Upgraded ChUI to v3.0
Updated the code that generates the UI to the new ChUI v3.0 conventions