Converted views to django's generic view class style.