front-end check test and some bugs fix