ui add and some bug