client side refactor of api urls, refactored initial tag request to use a promise