updated layout method to use @extends and @section