beginning video functionality