added errors controller and custom views.