JC: removed ajax code from controller. spec passes.
JC: removed ajax code from controller and fixed spec. spec passes.