update style and error page