fixing not found linking and template