refacted DataApiFragment