finish the front end