change to call from ajax and update view counter
add bracket to check video is null