Add functionality for layout templates