refactor frontend doc