transaction for adding layer config