Refined UI codes and structure