Add loader, separate out iFrame load logic