logic implemented for pulling and rendering task in iframe