change template path to relative