add selling code ui functionality