refactoring to use same variable name in different iframe
Add mydragon function