use widget function as example to create widget manager object