return json when setting any action other than redirect