refactored urls to work with django url resolvers, allowing more portability