update app with conditionals