modify html h1 title. add error handling.