chore(dd-app): clean code and refactor dd-app