updating _layout ref