changing slugify to use method and route