Refactoring and webpage restyling