add error controller and view