added onchilada hooks into controller