added functionality for multiple videos in one player