replace div with output