save after each mediaelement