created an angular service for other controllers to access the dropbox methods