refactoring wedding page