refactor new page front-end