add stylesheet, handle errors