update some code for add video