case switch on code in dropdown