fixed front-end data fetching from model