bug fixes in views.py createPath