begin change xui, with bugs