Refactoring html layout.