Extract UI code