Adding events to the iframe