added media to clickable function