Switched to using Resource for the REST calls
Show an alert when there is an error fetching the data