Fixed up the errorController controller/view

Removed any unnecesairy actions form the view and moved them to the
controller where they belong.