Revert "refactor app to fix updateData"

This reverts commit 257248dafcf014a5dde92f01e8ca7458c78cec8c.