fix  some bugs and update backend UI