merge ui with code