ui field mapping code