replaced old rate service as angular controller