change the main layout to show the custom widget; add class generating path to draw widget's shape