Clean up Switch statement in File View Controlelr