adding layer visibility feature