get the event handlers and media src target correct