media with dialog working