add layer off/on functionality