use deps to handle retrieving data from backend