Add preferences controller.