add code for updating the app and data