enables class based views