moved video player logic to the controller