Updated cmdSampleToggleLayer.cpp