refactoring html bundle