add basic ajax functionality; prettify views.py file
fix url issues with slashes