fixed up the views and urls