build html structure