added try catch to new controller