Refactor app a bit. Better to have callbacks than to pass scope in.