Transferred the diagnostics show logic into the controller