refactor code that handles camera settings when activating a new chapter