added the ability to pass data to the layout