view factory switch case missing break