updated angular functionality