Add BFS2ControlWidget and fix some bugs in BFS2.