finishing video functionality