errorhandling in the views/controllers