init the front end