Added error page and page views