change document title and styles