implemented correct callback in controller