change the logic of iframe to show correct page