added encoding on show_tag_panel method