populating cards from server