fixed urls by adding <pk> instead.

also tweaked template slightly