updates the app ctrl and other stuff