fixes to popup templates. Add api for retriving popup info
fixes to popup templates. Add api for retriving popup info