updating for angular best practices