formatted api controller return objects better