Refactored zerogen UI generation