Inserting title, cleaning up dangling tag