write front end