updated pop up to handle media