refactored the urls and moved them into the app dir