implemented fetching data for user preference