adding condition to see if the video/slide is avaliable