allow layout to access binding of template