cleaned up iframe code