Added break to switch in tabmagic