course message

-Reverted previous changed to check for json return code.
-Fixed ajax controller so that now a json response is sent when changing settings.