added angular functionality