handle media checkbox