Modified window to get title from page