Fixed many bugs, added loading icon to iframe