switched to generic class based views