change controller to static