refactoring the view of the website