make Video singleton and add input handling code