better page title detection