Fixed context issue in front-end project model, return json from the controller