Opti code for UI