Added widget() and flowLayout() functions