add teacher layout to template