Updated conditions for licensed popups.
Added custom dialogs to imported js files.