adding app logic and acid-state stuff
merge paperroll template stuff with logic and acid state stuff