Modify the layout of the template