updated the application controller to remove deprecation warning