Only do the calculation in iframe and keep UI in main window