Refactor CustomBackgroundTask, ControllerActivity