Moved SwitchView script