changed route name from dog/ to dog-by-id/