changing redirect back to json render again