Cretaed the error controller and deleted old scirpt and view files