convert .panel class to <output> tag