adding a controller to manage the camera