added cache to the controller