Make ui add field work