adding layer config from html