add feature to allow popup controls to bind to many layers