fix frontend preview for new elements