added returned value for redirect and OK as a json object