refactor d3Renderer and add a sticky option to layers