beginning of the app