API with layer and nodes participation settings
Improved UI javascript readability