updating application flow