handle urls, title, and a bit of cleanup