Change data loading from frontend to backend