defined  overall flow of the app