adding support for json content and popovers