adjust app to angular-app patterns