fixes urls and detail view