setting initial data and loading in eager mode