refactor and reuse a webpage.