Move iframe refresh code over to present mode