fixed edit video functionality