adding angular application logic to static/app