refactor web page