Trying fix for errors in media class and popup view.