altered to grab title from page