Adapting app to the new factory rest service