fix layout and template path