refactoring my friends website