Refactoring of the website using NextJS