refactoring some html