moved variable declaration into scope of switch statement
moved variable declaration into scope of switch statement

control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced,control-center/serviced