Move tag_edit_dialog() to your own file.