added rest call to angular