set current widget in layout opts