fix tag creation and display