make layout.lua a widget