clean front end code for chapters