updated methods in CameraController.cs