Working app, split app into app and webapp