changing urls and views to use generic views