needed beans definition in controller