Merge UI code