fix template location and typo in urls