fix front end code.

add more feature to front end problem.