Add async functions for iframe