Updated to Class-based views syntax.