change dataContext to appContext