switch content element type correctly