refactored DiagnosticsController
refactored DiagnosticsController