changing tags (text) to tag (entity)
edit post function