initialization of app fetches data