refinements in view controller case switch