change generic views to class based and url tag to newer version for django 1.5 support