added switch to canvas for ie