template modification to ensure id linking works