rewrite views with class based views