added logic for when video is finished to fire event