added layout to templates