replace existing html on resize