modified app/template