added the method of creating html