Sorting out the tamplates and url sorting out.