complete the whole tp process in the front-end