replaced addEventListener with angular ngclick