adding exception handling in controllers.