resolved the problem of detailview still playing video when dismissing it.