simulate a ui editor