Improvements to error alert controller and partial