Code snippet to reload captchas from another page event