you have to replace ```$layout``` by ```$layout_id```