refactor(dd-app): refactor complete app for optimization