improve error page and add Idea class