update app logic nd routing