added code to play videos