Move template file and fix relative php pages