building the front end