Changed controllers to accept only html and json