findign the right widget automatically
snapshot