change category param in loadPoints from name to id