found a working method for displaying widget