wrap iframe installer in function