fixed urls.py and other minor tweaks